package org.jsshbroadcast.ui.gui;

import javax.swing.*;

/**
 *
 * @author Eduardo Folly
 */
public class AlterarLAF {

    private LookAndFeel lafPadrao;

    public AlterarLAF() {
        this.lafPadrao = UIManager.getLookAndFeel();
    }

    public void setOsLAF() throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    
    public void restoreLAF() throws UnsupportedLookAndFeelException {
        UIManager.setLookAndFeel(this.lafPadrao);
    }
}
